<script setup>
import { ref } from 'vue'
import { useLogin } from '@/hooks/useLogin'
import { useRoute } from 'vue-router'
import useStore from '@/stores'
import { storeToRefs } from 'pinia'

const { menuStore } = useStore()
const { selectedKeys } = storeToRefs(menuStore)
const route = useRoute()
console.log(route)
const handle = () => {
  useLogin().then(() => {
    console.log('12323')
  })
}
</script>

<template>
  {{ selectedKeys }}
  <a-button @click="handle" type="primary">按 钮</a-button>
</template>

<style lang="less" scoped></style>
